package com.yh.mapper;

import com.yh.javabean.User;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface UserMapper {
    List<User> selectAll();

    @Update("update user set username=#{username} where uid=#{uid}")
    int updateUsernameByUid(@Param("uid") int uid, @Param("username") String username);

    @Update("update user set password=#{password} where uid=#{uid}")
    int updatePasswordByUid(@Param("uid") int uid,@Param("password")String password);
}
